package com.baseframe.file.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baseframe.file.entity.BaseFile;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baseframe.file.entity.requset.BaseFileRequest;
import com.baseframe.file.entity.vo.BaseFileVO;
import com.baseframe.mybatis.utils.PageInfo;
import com.baseframe.tool.result.R;
import org.springframework.web.multipart.MultipartFile;

/**

* @description 针对表【base_file】的数据库操作Service
* @createDate 2023-06-28 06:42:04
*/
public interface BaseFileService extends IService<BaseFile> {

    R<Object> uploadFile(MultipartFile file);

    BaseFile getFileInfo(String fileUrl);

    Page<BaseFileVO> getFilePageList(PageInfo pageInfo);

    boolean addLabel(BaseFileRequest request);

    boolean deleteLabel(BaseFileRequest request);
}
